import MaplestoryGlobal from './global.js';
import { Scene } from './scene/scene.js';

import { Application } from 'pixi.js'

const app = window.app = MaplestoryGlobal.app = new Application({
  transparent: true,
  width: window.innerWidth > 800? 800: window.innerWidth,
  height: window.innerHeight > 600? 600: window.innerHeight,
});


document.body.appendChild(app.view);

(async function main() {
  const scene = window.scene = new Scene(app);
  window.scene = scene;
  await scene.init();
  app.ticker.add(async r => {
    await scene.update();
  })
})();
